package com.yltrcc.blog.model.model;

import java.util.List;

/**
 * Package: com.yltrcc.blog.api
 * Date：2022-01-15
 * Time：16:18
 * Description：TODO
 *
 * @author yltrcc
 * @version 1.0
 */
public class ApiResponse<T> extends BaseApiResponse{
    /**
     * 该出错的详细技术信息，提供给客户端的开发者阅读
     */
    private String developerMessage;

    /**
     * 请求结果数据
     */
    private List<T> data;

    public ApiResponse(List<T> data) {
        this.data = data;
    }

    public ApiResponse() {}


    public String getDeveloperMessage() {
        return developerMessage;
    }

    public void setDeveloperMessage(String developerMessage) {
        this.developerMessage = developerMessage;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
